package com.hduong.springcloud.controller;

import entities.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by dudu on 2020/3/18.
 */
@RestController
@Slf4j
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/getPort")
    public CommonResult getServerPort() {
        return new CommonResult(200, "", "返回端口： " + this.serverPort);
    }

}
